package com.example.jniteststatic;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends Activity {

	private JNI mJNI;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		mJNI = new JNI();

		String text = "5 + 4 = " + mJNI.native_Add(5, 4);
		text += "\n8 - 2 = " + mJNI.native_Minus(8, 2);

		TextView textView = (TextView) findViewById(R.id.text);
		textView.setText(text);
	}

}
